<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<jsp:include page="head.htm" />
<link rel="stylesheet" type="text/css" href="css/style1.css" />
</head>
<body>
	<img src="images/hitch_banner.jpg"/>
	<div id="head">
		<h1>Hitch</h1>
	</div>
	<div id="content">
		<%@ include file="menu.jsp" %>

		<form:form method="post" action="addtour.html" modelAttribute="tour">
			<fieldset>
				<form:errors path="*" element="div" />
				<form:select path="action">
					<form:option value="-" label="--Please Select" />
					<form:options items="${actionValues}" itemLabel="name"
						itemValue="id" />
				</form:select>
			</fieldset>

			<fieldset>
				<label for="start_date">Start date:</label>
				<fmt:formatDate pattern="dd/MM/yyyy" value="${tour.start_date}"
					var="sd" />
				<form:input path="start_date" value="${sd}" class="date" />
				<form:errors path="start_date" element="div" cssClass="error" />
			</fieldset>

			<fieldset>
				<label for="start_hours">Start time:</label>
				<form:input path="start_hours" />
				<form:errors path="start_hours" element="div" cssClass="error" />
			</fieldset>
			<fieldset>
				<label for="start_minutes">Start time:</label>
				<form:input path="start_minutes" />
				<form:errors path="start_minutes" element="div" cssClass="error" />
			</fieldset>
			<fieldset>
				<label for="end_date">End date:</label>
				<jsp:useBean id="date2" class="java.util.Date" />
				<fmt:formatDate pattern="dd/MM/yyyy" value="${tour.end_date}"
					var="ed" />
				<form:input path="end_date" value="${ed}" class="date" />
				<form:errors path="end_date" element="div" cssClass="error" />
			</fieldset>
			<fieldset>
				<label for="end_hours">End time:</label>
				<form:input path="end_hours" />
				<form:errors path="end_hours" element="div" cssClass="error" />
			</fieldset>
			<fieldset>
				<label for="end_minutes">End time:</label>
				<form:input path="end_minutes" />
				<form:errors path="end_minutes" element="div" cssClass="error" />
			</fieldset>
			<fieldset>
				<label for="description">Description:</label>
				<form:textarea path="description" />
				<form:errors path="description" element="div" cssClass="error" />
			</fieldset>
			<fieldset>
				<label for="max_member_count">Seats max:</label>
				<form:input path="max_member_count" />
				<form:errors path="max_member_count" element="div" cssClass="error" />
			</fieldset>
			<fieldset>
				<label for="min_member_count">Seats min:</label>
				<form:input path="min_member_count" />
				<form:errors path="min_member_count" element="div" cssClass="error" />
			</fieldset>
			<fieldset>
				<div class="form-buttons">
					<div class="button">
						<input name="save" id="submit" type="submit"
							value="<fmt:message key="button.save"/>"> </input>
					</div>
				</div>
			</fieldset>
		</form:form>
	</div>
</body>
</html>
